package org.example.elm.controller;

import org.example.elm.model.Orders;
import org.example.elm.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/order")
public class OrderController {
    @Autowired
    private OrderService orderService;
    @RequestMapping("/create")
    public int createOrders(int userId,int businessId,int daId,double orderTotal ){
        return 0;
    }

    @RequestMapping("/getById")
    public Orders getOrderById(int orderId){
        return null;
    }

    @RequestMapping("/listByUserId")
    public Orders[] listOrdersByUserId(int userId){
        return null;
    }

}
